<!DOCTYPE html>
<html>

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>大区主推任务列表</title>
        <link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/platform.css" />
        <link rel="stylesheet" href="css/table.css" />
        <link rel="stylesheet" href="js/ui/jquery-ui.min.css" />
        <link rel="stylesheet" href="css/mainpush.css" />
        <style type="text/css">
        	.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year{
        		width:40px;height:20px;margin-right:10px;
        	}
        </style>
    </head>

    <body>
        <div class="header">
            <div class="u-title">大区主推任务管理</div>
        </div>
        <div class="container" ms-controller="mainController" >
            <div class="cnt-box">
                <div class="u-multiform">
                    <div class="column">
                        <div class="cell taskTopic">
                            <label>任务主题：</label>
                            <div class="cnt-box">
                                <input id="taskTopic" class="u-ipt" placeholder="输入任务主题"  ms-duplex="taskTopic"/>
                            </div>
                        </div>
                         <div class="cell tasktime">  
                            <label>任务时间：</label>
                            <div class="cnt-box">
                                <input class="u-ipt ipt-datepicker" type="text" id="month" placeholder="选择年月" ms-duplex="month" />
                            </div>
                        </div>
                    </div>
                    <div class="column">
                        <div class="cell">
                            <label></label>
                            <button class="u-btn small" ms-click="searchTask">查询</button>
                        </div>
                    </div>
                </div>
            </div>
       
        
            <div id="taskTable" ms-controller="taskTable"></div>
                <script type="avalon" id="tabletask">
                    <div class="tableWrapper">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>
                                        <input type="checkbox" ms-click="customFuncs.selAllcheckbox" id="checkTop" />
                                    </th>
                                    <th>任务单号</th>
                                    <th>任务主题</th>
                                    <th>任务时间</th>
                                    <th>创建时间</th>
                                    <th>分配状态</th>
									<th>任务状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ms-repeat-row="sources">
                                     <td>
                                        <input type="checkbox" ms-attr-value="row.id" />
                                    </td>
                                    <td>
                                        {{row.id}}
                                    </td>
                                    <td>{{row.taskTopic}}</td>
                                    <td>{{row.month}}</td>
                                    <td>{{row.createTime | date("yyyy-MM-dd HH:mm:ss")}}</td>
                                    <td>{{row.distStatus | filterAssignStatus}}</td>
									<td>{{row.isCurrent | filterTaskStatus}}</td>
                                    <td class="operate">
										<div ms-if="row.isCurrent == 0 || row.isCurrent == 1">
                                        	<div ms-if="row.distStatus == 0 || row.distStatus == 3">
											 	<a ms-attr-href="areaTaskDetail.html?operateStatus={{row.isCurrent}}&areaTaskId={{row.id}}">分配</a>
                                        	</div>
                                        	<div ms-if="row.distStatus == 1">
											 	<a ms-attr-href="areaTaskDetail.html?operateStatus={{row.isCurrent}}&areaTaskId={{row.id}}">查看</a>
                                        	</div>
                                        	<div ms-if="row.distStatus == 2">
											 	<a ms-attr-href="areaTaskDetail.html?operateStatus={{row.isCurrent}}&areaTaskId={{row.id}}">重新分配</a>
                                        	</div>
										</div>
										<div ms-if="row.isCurrent == -1">
											<a ms-attr-href="areaTaskDetail.html?operateStatus={{row.isCurrent}}&areaTaskId={{row.id}}">查看</a>
										</div>
                                    </td>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="8">
                                        <div class="pager">
                                            <div class="first-page" ms-click="firstpage" ms-class={{firstpagestyle}}>首页</div>
                                            <div class="pre-page" ms-click="prepage" ms-class={{prepagestyle}}>上一页</div>
                                            <div class="current-page">
                                                第<input class="current-page-num" type="text" ms-duplex="currentpage" ms-input="jumppage" />页
                                                <span class="totalpage">共 {{totalpage}} 页</span>
                                            </div>
                                            <div class="next-page" ms-click="nextpage" ms-class={{nextpagestyle}}>下一页</div>
                                            <div class="last-page" ms-click="lastpage" ms-class={{lastpagestyle}}>尾页</div>
                                            <div class="messageinfo">{{startrow}}-{{endrow}} 共{{total}}条</div>
                                        </div>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </script>
            <div class="cnt-box">
                <button class="u-btn small export-task" ms-click="exportTask">导出完成情况</button>
            </div>
        </div>

        <div class="u-popup" id="popup_tips">
             <div class="bg"></div>
             <div class="asTable">
                 <div class="asTableCell">
                     <div class="asCell alert">
                         <a href="javascript:;" class="close btn-close">×</a>
                         <p class="title">提示</p>
                         <div class="container">
                             <div class="error"></div>
                             <p></p>
                         </div>
                         <div class="btn-box">
                             <button class="u-btn btn-close">确定</button>
                         </div>
                     </div>
                 </div>
             </div>
         </div>
        </div>
        <div class="loadData"></div>
        <script src="js/jquery.min.js"></script>
        <script src="js/avalon.shim.sn.js"></script>
        <script src="js/ui/jquery-ui.min.js"></script>
        <script src="js/ui/jquery-ui.datepicker.min.js"></script>
        <script src="js/jquery.form.js"></script>
        <script src="js/swift-ui-table-1.1.js"></script>
        <script src="js/platform.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/areaTaskList.js"></script>
	</body>
</html>
